
import 'package:flutter/cupertino.dart';

class JuBoFadeRoute extends PageRouteBuilder
{
  final Widget page;

  JuBoFadeRoute({this.page}) : super(

    pageBuilder: (
        BuildContext context,
        Animation<double> animation,
        Animation<double> secondaryAnimation,
        ) =>page,
    transitionsBuilder: (
      BuildContext context,
      Animation<double> animation,
      Animation<double> secondaryAnimation,
      Widget child,
      ) =>FadeTransition(
     opacity: animation,
     child: child,
    ),


  );
}
